import { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

const systemRoutes: RouteRecordRaw[] = [
    {
        path: '/system',
        component: Layout,
        redirect: '/system/menu',
        name: 'System',
        meta: { title: '系统管理', icon: 'settings-line' },
        children: [
            {
                path: 'menu',
                name: 'SystemMenu',
                meta: { title: '菜单管理' },
                component: () => import('@/views/system/menu/index.vue'),
                children: []
            },
            {
                path: 'user',
                name: 'SystemUser',
                meta: { title: '用户管理' },
                component: () => import('@/views/system/user/index.vue'),
                children: []
            },
            {
                path: 'role',
                name: 'SystemRole',
                meta: { title: '角色管理' },
                component: () => import('@/views/system/role/index.vue'),
                children: []
            },
        ]
    }
]

export default systemRoutes;